Predis\Connection\Aggregate\RedisCluster A

Total Complexity 66
Dependencies 10
Dependents 1
Total lines 506
Lines of code 220
Logical lines of code 112
Comment lines 178
Methods 30
Properties 7

Methods 30

Method Rating Maintainability Complexity Lines of code
setSlots()
S
60 6 12
askSlotsMap()
S
57 5 16
getConnectionBySlot()
S
59 5 14
getConnection()
S
61 3 13
onMovedResponse()
S
61 3 12
guessNode()
S
61 3 12
onErrorResponse()
S
62 3 11
buildSlotsMap()
S
62 3 11
isConnected()
S
68 3 8
__construct()
S
75 2 4
executeCommand()
S
67 2 8
onAskResponse()
S
64 2 9
getRandomConnection()
S
74 2 5
getConnectionById()
S
73 2 5
getSlotsMap()
S
72 2 6
removeById()
S
65 2 10
remove()
S
64 2 10
disconnect()
S
74 2 5
connect()
S
74 2 5
setDefaultParameters()
S
72 2 6
createConnection()
S
64 1 9
move()
S
75 1 4
add()
S
75 1 4
writeRequest()
S
80 1 3
readResponse()
S
80 1 3
count()
S
80 1 3
getIterator()
S
80 1 3
getClusterStrategy()
S
82 1 3
getConnectionFactory()
S
82 1 3
useClusterSlots()
S
80 1 3